package cn.openea.perpartner.meily.web.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * (BuyingRecord)实体类
 *
 * @author rains
 * @since 2023-02-06 16:26:31
 */
@SuppressWarnings("serial")
@Data
@TableName("meily_buying_record")
public class BuyingRecord implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId
    private String id;
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private String createTime;
    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateTime;
    @ApiModelProperty(value = "购买者id")
    private String buyerId;
    @ApiModelProperty(value = "购买者昵称")
    private String buyerName;
    @ApiModelProperty(value = "购买者头像")
    private String buyerAvatarUrl;
    @ApiModelProperty(value = "购买数量")
    private String buyQuantity;
    @ApiModelProperty(value = "商品单价")
    private String unitPrice;
    @ApiModelProperty(value = "支付金额")
    private String payAmount;
    @ApiModelProperty(value = "购买时间")
    private String buyTime;
    @ApiModelProperty(value = "收货地址(JSONObject对象)")
    private String address;
    @ApiModelProperty(value = "商品记录唯一ID")
    private String goodsId;
    @ApiModelProperty(value = "商品编号")
    private String goodsNo;
    @ApiModelProperty(value = "商品名称")
    private String goodsName;
    @ApiModelProperty(value = "供货商编号")
    private String supplierId;
    @ApiModelProperty(value = "供货商名称")
    private String supplierName;
    @ApiModelProperty(value = "订单编号")
    private String orderNo;
    @ApiModelProperty(value = "订单状态。待支付、已支付、支付取消、待发货、已发货、已完成；(默认已支付)")
    private String orderStatus;
    @ApiModelProperty(value = "供货商(JSONObject对象)")
    private String supplier;
    @ApiModelProperty(value = "周期串")
    private String cycle;
    @ApiModelProperty(value = "定制ID")
    private String sceneAssetsId;
    @ApiModelProperty(value = "场景ID")
    private String sceneId;
    @ApiModelProperty(value = "来源id")
    private String sourceId;
    @ApiModelProperty(value = "商品规格")
    private String specification;
    @ApiModelProperty(value = "业务关联id")
    private String groupBuyingSubId;
    @ApiModelProperty(value = "订单备注")
    private String orderRemarks;
    @ApiModelProperty("原来金额")
    private BigDecimal originalPayAmount = BigDecimal.ZERO;
    @ApiModelProperty(value = "优惠券id")
    private Long couponId;
    @ApiModelProperty(value = "优惠券金额")
    private BigDecimal couponAmount = BigDecimal.ZERO;
    @ApiModelProperty(value = "是否使用抵扣。0:不使用；1:使用；(默认0)")
    private String useDeduction = "0";
    @ApiModelProperty("抵扣金额")
    private BigDecimal deductionAmount = BigDecimal.ZERO;
}

